// pages/filing/accomplish/accomplish.js
import {
  updateFamilyArchiveStatus
} from "../../../services/filing/filing"
import {
  GETSTORAGE
} from "../../../services/storage/storage"
Page({

  /**
   * 页面的初始数据
   */
  data: {
    list: [
      '个人信息', '家庭管理', '健康管理', '建档完成'
    ]
  },

  nextStep() {
    wx.switchTab({
      url: '/pages/index/index',
    })
  },
  onThirdChange(e) {
    console.log(e, '---');
    const {
      current
    } = e.detail

    if (current == 0) {
      wx.navigateTo({
        url: '/pages/basicInformation/basicInformation',
      })
    }
    if (current == 1) {
      const msg = 'filingCompleted'
      wx.navigateTo({
        url: `/pages/filing/invite-the-family/invite-the-family?msg=${msg}`,
      })
    }
    if (current == 2) {
      const msg = 'refresh'
      wx.navigateTo({
        url: `/pages/filing/health-management/healt-hmanagement?msg=${msg}`,
      })
    }
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {},

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})